package day06;
//此类是用于验证方法的重载
public class Test04 {
    public static void main(String[] args) {
        method();
        method(999);
        method("王" , 20);
        method(20 , "李");
    }
    public static void method(){
        System.out.println("哈哈哈，没有参数");
    }
    public static void method(int a){
        System.out.println("我的年龄是：" + a);
    }
    public static void method(String a, int b){
        System.out.println(a + "今晚要干" + b + "碗饭");
    }
    public static void method(int a, String b){
        System.out.println(b + "今晚要干" + a + "碗饭");
    }
}
